home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Games / Hugo / Library / grammar.g < prev    next >
Text File  |  1997-04-16  |  14KB  |  376 lines

  1. !----------------------------------------------------------------------------
  2. !
  3. !           HUGO Verb Grammar v2.3.2 by Kent Tessman (c) 1995-1997
  4. !                     for use with Hugo Compiler v2.3
  5. !
  6. !----------------------------------------------------------------------------
  7. !
  8. ! All verb grammar must be defined or included at the start of a game file, 
  9. ! before any objects or executable code.
  10. !
  11. !----------------------------------------------------------------------------
  12.  
  13. #version 2.3
  14.  
  15. !----------------------------------------------------------------------------
  16. ! NON-ACTION VERBS:
  17. !----------------------------------------------------------------------------
  18.  
  19. #ifclear NO_XVERBS
  20.  
  21. xverb "restore", "resume"
  22.     *                                                       DoRestore
  23.     * "game"/"story"                                        DoRestore
  24.  
  25. xverb "save", "suspend"
  26.     *                                                       DoSave
  27.     * "game"/"story"                                        DoSave
  28.  
  29. xverb "script", "transcript"
  30.     *                                                       DoScriptOnOff
  31.     * "on"/"off"                                            DoScriptOnOff
  32.  
  33. #ifclear NO_RECORDING
  34. xverb "record"
  35.     *                                                       DoRecordOnOff
  36.     * "on"/"off"                                            DoRecordOnOff
  37.  
  38. xverb "playback"
  39.     *                                                       DoRecordOnOff
  40. #endif
  41.  
  42. xverb "quit", "q"
  43.     *                                                       DoQuit
  44.     * "game"                                                DoQuit
  45.  
  46. xverb "restart"
  47.     *                                                       DoRestart
  48.     * "game"                                                DoRestart
  49.  
  50. xverb "brief", "normal"
  51.     *                                                       DoBrief
  52.  
  53. xverb "superbrief", "short"
  54.     *                                                       DoSuperBrief
  55.  
  56. xverb "verbose", "long"
  57.     *                                                       DoVerbose
  58.  
  59. xverb "display"
  60.     *                                                       DoDisplay
  61.     * "wide"/"tall"                                         DoDisplay
  62.  
  63. xverb "wide", "tall"
  64.     *                                                       DoDisplay
  65.  
  66. xverb "score"
  67.     *                                                       DoScore
  68.  
  69. xverb "hello", "hi", "howdy"
  70.     *                                                       DoHello
  71.  
  72. #ifclear NO_UNDO
  73. xverb "undo"
  74.     *                                                       DoUndo
  75. #endif
  76.  
  77. #endif  ! ifclear NO_XVERBS
  78.  
  79. !----------------------------------------------------------------------------
  80. ! ACTION VERBS:
  81. !----------------------------------------------------------------------------
  82.  
  83. #ifclear NO_VERBS
  84.  
  85. !
  86. ! For looking and examining:
  87. !
  88.  
  89. verb "look", "l"
  90.     *                                                       DoLookAround
  91.     * "in"/"inside" container                               DoLookIn
  92.     * "on" platform                                         DoLookIn
  93.     * "at" object                                           DoLook
  94.     * "out"/"through" object                                DoLookThrough
  95.     * "under"/"underneath"/"beneath" object                 DoLookUnder
  96.     * "beside"/"behind"/"around" object                     DoLookUnder
  97.     * object                                                DoLook
  98.                                 
  99. verb "examine", "x"
  100.     *                                                       DoVague
  101.     * object                                                DoLook
  102.  
  103.  
  104. !
  105. ! For waiting around:
  106. !
  107.  
  108. verb "wait", "z"
  109.     *                                                       DoWait
  110.     * "for" anything                                        DoWaitforChar
  111.     * "until" number                                        DoWaitUntil
  112.     * "until" "turn" number                                 DoWaitUntil
  113.     * number                                                DoWait
  114.     * number "minutes"/"turns"/"turn"/"minute"              DoWait
  115.     * "for" number "minutes"/"turns"/"turn"/"minute"        DoWait
  116.  
  117.  
  118. !
  119. ! For moving around:
  120. !
  121.  
  122. verb "north", "n", "south", "s", "east", "e", "west", "w", \
  123.     "southeast", "se", "southwest", "sw", "northwest", "nw", \
  124.     "northeast", "ne", "up", "u", "down", "d", "in", "out", \
  125.     "inside", "outside"
  126.     *                                                       DoGo
  127.  
  128. verb "go", "walk"
  129.     * "to"/"in"/"into"/"inside"/"through" object            DoEnter
  130.     * "out" object                                          DoGo
  131.     * "out"/"outside"                                       DoExit
  132.     * object                                                DoGo
  133.  
  134. verb "enter", "board", "mount"
  135.     *                                                       DoVague
  136.     * object                                                DoEnter
  137.                             
  138. verb "exit"
  139.     *                                                       DoExit
  140.     * object                                                DoExit
  141.  
  142. verb "sit", "lie"
  143.     *                                                       DoEnter
  144.     * "down"                                                DoEnter
  145.     * "in"/"on" object                                      DoEnter
  146.     * "down" "in"/"on" object                               DoEnter
  147.  
  148. verb "stand"
  149.     *                                                       DoExit
  150.     * "up"                                                  DoExit
  151.  
  152. verb "dismount"
  153.     *                                                       DoExit
  154.     * object                                                DoExit
  155.  
  156.  
  157. !
  158. ! For moving, taking, and dropping objects:
  159. !
  160.  
  161. verb "move"
  162.     *                                                       DoVague
  163.     * object                                                DoMove
  164.  
  165. verb "get"
  166.     *                                                       DoVague
  167.     * "up"/"out"/"off"/"down"                               DoExit
  168.     * "outof"/"offof"/"off" object                          DoExit
  169.     * "in"/"in"/"inside"/"on"                               DoEnter
  170.     * "in"/"into"/"inside"/"on"/"onto" object               DoEnter
  171.  
  172. verb "get", "take", "grab", "snatch", "fetch"
  173.     *                                                       DoVague
  174.     * multinotheld "from"/"off"/"on"/"in" parent            DoGet
  175.     * multinotheld "offof"/"outof" parent                   DoGet
  176.     * multinotheld "from" "offof"/"outof"/"on"/"in" parent  DoGet
  177.     * multinotheld                                          DoGet
  178.  
  179. verb "take"
  180.     *                                                       DoVague
  181.     * "off" multiheld                                       DoTakeOff
  182.     * multiheld "off"                                       DoTakeOff
  183.     * "inventory"                                           DoInventory
  184.  
  185. verb "pick"
  186.     *                                                       DoVague
  187.     * "up" multinotheld                                     DoGet
  188.     * "up" multinotheld "from"/"off" parent                 DoGet
  189.     * "up" multinotheld "offof"/"outof" parent              DoGet
  190.     * multinotheld "up"                                     DoGet
  191.     * multinotheld "up" "from"/"off" parent                 DoGet
  192.     * multinotheld "up" "offof"/"outof" parent              DoGet
  193.     * multinotheld                                          DoGet
  194.  
  195. verb "drop"
  196.     *                                                       DoVague
  197.     * multiheld "on" "ground"/"floor"                       DoPutonGround
  198.     * multiheld "outside" xobject                           DoPutonGround
  199.     * multiheld "in"/"into"/"inside" container              DoPutIn
  200.     * multiheld "on" platform                               DoPutIn
  201.     * multiheld                                             DoDrop
  202.  
  203. verb "leave"
  204.     *                                                       DoExit
  205.     * object                                                DoExit
  206.     * multiheld "on"/"onto" "ground"/"floor"                DoPutonGround
  207.     * multiheld "outside" xobject                           DoPutonGround
  208.     * multiheld "in"/"inside" container                     DoPutIn
  209.     * multiheld "on" platform                               DoPutIn
  210.     * multiheld                                             DoDrop
  211.  
  212. verb "let"
  213.     * "go" multiheld                                        DoDrop
  214.     * multiheld "go"                                        DoDrop
  215.  
  216. verb "put", "place"
  217.     *                                                       DoVague
  218.     * multiheld "on"/"onto" "ground"/"floor"                DoPutonGround
  219.     * multiheld "outside" xobject                           DoPutonGround
  220.     * "down" multiheld                                      DoDrop
  221.     * multiheld "down"                                      DoDrop
  222.     * multiheld "in"/"into"/"inside" container              DoPutIn
  223.     * multiheld "on"/"onto" platform                        DoPutIn
  224.     * multiheld                                             DoDrop
  225.  
  226. verb "put"
  227.     * multiheld "on"                                        DoWear
  228.     * "on" multiheld                                        DoWear
  229.  
  230. verb "insert"
  231.     *                                                       DoVague
  232.     * held                                                  DoPutIn
  233.     * held "in"/"into" object                               DoPutIn
  234.  
  235. verb "empty", "unload"
  236.     *                                                       DoVague
  237.     * container                                             DoEmpty
  238.     * platform                                              DoEmpty
  239.     * container "on"/"onto" "ground"/"floor"                DoEmptyGround
  240.     * platform "on"/"onto" "ground"/"floor"                 DoEmptyGround
  241.  
  242.  
  243. !
  244. ! Other object-handling verbs:
  245. !
  246.  
  247. verb "give", "hand", "offer"
  248.     *                                                       DoVague
  249.     * object                                                DoGive
  250.     * object "to" object                                    DoGive
  251.  
  252. verb "show"
  253.     *                                                       DoVague
  254.     * object                                                DoShow
  255.     * object "to" xobject                                   DoShow
  256.  
  257. verb "inventory", "inv", "i"
  258.     *                                                       DoInventory
  259.     * "wide"/"tall"                                         DoInventory
  260.  
  261. verb "open"
  262.     *                                                       DoVague
  263.     * openable                                              DoOpen
  264.  
  265. verb "lock"
  266.     *                                                       DoVague
  267.     * lockable                                              DoLock
  268.     * lockable "with"/"using" held                          DoLock
  269.  
  270. verb "unlock"
  271.     *                                                       DoVague
  272.     * lockable                                              DoUnlock
  273.     * lockable "with"/"using" held                          DoUnlock
  274.  
  275. verb "close", "shut"
  276.     *                                                       DoVague
  277.     * openable                                              DoClose
  278.  
  279. verb "read", "peruse"
  280.     *                                                       DoVague
  281.     * readable                                              DoLook
  282.  
  283. verb "switch", "turn", "flip"
  284.     *                                                       DoVague
  285.     * switchable "on"                                       DoSwitchOn
  286.     * "on" switchable                                       DoSwitchOn
  287.     * switchable "off"                                      DoSwitchOff
  288.     * "off" switchable                                      DoSwitchOff
  289.  
  290. verb "wear"
  291.     *                                                       DoVague
  292.     * multi                                                 DoWear
  293.  
  294. verb "remove"
  295.     *                                                       DoVague
  296.     * multi                                                 DoTakeOff
  297.     * multi "from"/"outof"/"offof" parent                   DoGet
  298.  
  299. verb "listen"
  300.     *                                                       DoListen
  301.     * "to" object                                           DoListen
  302.  
  303. verb "hear"
  304.     *                                                       DoListen
  305.     * object                                                DoListen
  306.  
  307. verb "eat", "taste", "bite", "chew"
  308.     *                                                       DoVague
  309.     * object                                                DoEat
  310.  
  311. verb "drink", "sip", "swallow"
  312.     *                                                       DoVague
  313.     * object                                                DoDrink
  314.     * "from" object                                         DoDrink
  315.  
  316. verb "hit", "strike", "break", "attack", "whack", "beat", "punch"
  317.     *                                                       DoVague
  318.     * object                                                DoHit
  319.     * object "with"/"using" held                            DoHit
  320.  
  321. verb "kill", "murder", "fight"
  322.     *                                                       DoVague
  323.     * living                                                DoHit
  324.  
  325.  
  326. !
  327. ! For talking to characters:
  328. !
  329.  
  330. verb "ask", "question", "consult"
  331.     *                                                       DoAsk
  332.     * living                                                DoAsk
  333.     * living "about" anything                               DoAsk
  334.     * "about" anything                                      DoAskQuestion
  335.  
  336. verb "talk", "speak"
  337.     *                                                       DoTalk
  338.     * "to" living                                           DoTalk
  339.     * "to" living "about" anything                          DoTalk
  340.     * "about" anything                                      DoAskQuestion
  341.  
  342. verb "tell"
  343.     * "me" "about" anything                                 DoAskQuestion
  344.     * living "about" anything                               DoTell
  345.  
  346. verb "explain"
  347.     * "to" "me" "about" anything                            DoAskQuestion
  348.     * "to" living "about" anything                          DoTell
  349.  
  350. verb "what"
  351.     * "is"/"about" anything                                 DoAskQuestion
  352.  
  353. verb "who"                                             
  354.     * "is" anything                                         DoAskQuestion
  355.  
  356. #endif  ! ifclear NO_VERBS
  357.  
  358. !----------------------------------------------------------------------------
  359. ! Include verb stub grammar if specified
  360.  
  361. #ifset VERBSTUBS
  362. #include "verbstub.g"
  363. #endif
  364.  
  365. !----------------------------------------------------------------------------
  366. ! Include debugging grammar if specified
  367.  
  368. #ifset DEBUG
  369. #include "hugofix.g"
  370. #endif
  371.  
  372. #ifset DEBUG_SMALL
  373. #include "hugofix.g"
  374. #endif
  375.  
  376.